.POSIX:
SHELL := /bin/bash
YARN  :=  $(shell which yarn)
# Format the code
fmt:
	$(YARN) run fmt
# Install dependencies
install:
	@echo -e "=== \033[33mInstalling dependencies...\033[0m ==="
	@echo -e ""
	$(YARN) install
	@echo -e ""
	@echo -e "=== \033[32mDependencies installed.\033[0m ==="
	@echo -e ""
### Git ###
# Git log
log:
	git log --color --graph --pretty=oneline --abbrev-commit
# Git pull
pull:
	git pull origin master:master
# Git push
push: pull
	git push origin dev:dev
